Stored Procedures [dbo].[BAEOrderProductGetAllChildren]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@OrderProductIDint4
SQL Script
create procedure [dbo].[BAEOrderProductGetAllChildren] @OrderProductID as
int
AS
    SELECT OrderSuperProductChildProduct.*
    FROM OrderProduct JOIN OrderSuperProductChildProduct ON OrderSuperProductChildProduct.OrderProductID = OrderProduct.OrderProductID
    WHERE OrderProduct.OrderProductID = @OrderProductID
    ORDER BY OrderProduct.OrderProductID;

GO
Uses